package simon.xianyu.task.center.db.dbsvc;

import org.springframework.stereotype.Service;
import simon.xianyu.task.center.db.po.AgentPo;
import simon.xianyu.task.center.db.repo.AgentPoRepo;
import simonxianyu.boot.jpa.BaseJpaDbSvc;

@Service
public class AgentRoDbSvc extends BaseJpaDbSvc<AgentPoRepo, AgentPo, String> {
  @Override
  protected void doMerge(AgentPo e, AgentPo m) {
    e.setName(m.getName());
  }

  @Override
  protected String extractId(AgentPo m) {
    return m == null ? null : m.getId();
  }
}
